package com.zhen;

import com.zhen.factory.FKSqlSessionFactory;
import com.zhen.mapper.UserMapper;
import org.apache.ibatis.session.SqlSession;

public class DeleteTest {

    public static void main(String[] args) {
        SqlSession session = FKSqlSessionFactory.getSqlSession();
        UserMapper userMapper = session.getMapper(UserMapper.class);

        userMapper.removeUser(5);

        session.commit();
        session.close();
    }

}
